save To Archive
abstract suspend fun saveToArchive(scene: DesignBlock, options: SaveToArchiveOptions = SaveToArchiveOptions()): ByteBuffer
Saves the current scene and all of its referenced assets into an archive. The archive contains all assets, that were accessible when this function was called. Blocks in the archived scene reference assets relative from to the location of the scene file. These references are resolved when loading such a scene via load.
Return
a serialized scene archive in zip format.
Parameters
scene
the scene to archive.
options
optional settings, such as compression for the scene inside the archive. Bundled media is always stored uncompressed, because it already is in compressed formats.